﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 第五次作业
{
    internal class Class2
    {
        
        public static void Main(string[] args)
        {
            Random random = new Random();
            int[] nums=new int[100];
            for(int i = 0; i < 100; i++)
            {
                nums[i] = random.Next(1,1000);
            }
            var results=nums.OrderBy(i => i).ToList();
            foreach (int i in results)
            {
                Console.WriteLine(i);
            }
        }
    }
}
